package com.delivery.activity;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;

public class TestPoint extends Activity {

	Handler handler = new Handler();

	PagePoint pagePoint;

	@Override
	public void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);

		//pagePoint = (PagePoint) findViewById(R.id.test);

		pagePoint.addPagePoint(2);

		// 模拟翻页的时候切换页标
		handler.postDelayed(new Runnable() {

			public void run() {

				for (int i = 1; i < 5; i++) {

					pagePoint.toPagePoint(0, i);

					Log.i("", "----------onDraw invalidate----------");

					break;

				}

			}

		}, 2000);

	}

}
